package com.nbst.model.mes;

import java.util.Date;

/**
 * 
 * @ClassName: OrderNeedEntry
 * @Description:订单齐套检查信息表体(订单Bom齐套信息表)
 * @author King
 * @date 2018年12月17日
 *
 */
public class OrderNeedEntry {

	/** 销售订单分录id */
	private Integer fDetailID;

	/** Bom层级 */
	private Integer rank;

	/** 物料名称 */
	private String fName;

	/** 物料代码 */
	private String fNumber;

	/** 规格型号 */
	private String fModel;

	/** 上级bom物料代码 */
	private String fPNumber;

	/** 总需求量 */
	private Double fTotal;

	/** 上级需求数量 */
	private Double fNeedQty;

	/** 占用库存数量 */
	private Double fStockQty;

	/** 占用别的生产任务单数量 */
	private Double fNeedIcmoQty;

	/** 物料属性 */
	private Integer fErpClsID;

	/** 是否需要采购 */
	private Integer fIsBuy;

	/** 占用采购在途数 */
	private Double fRoadQty;

	/**
	 * 仓库备货数 这里的备货数是取安全库存与最小库存中的最大值 如果这个时候的备货数还小于最小经济批量时，则取最小经济批量
	 */
	private Double fInvQty;

	/** 上级物料备货需求数 */
	private Double fSuperInvQty;

	/** 订单需求本级数量 */
	private Double fOrderQty;

	/** 物料内码 */
	private Integer fItemID;

	/** 订单号 */
	private String fBillNo;

	/** 订单交期 */
	private Date fDeliveryDate;
	
	/**订单产品名称*/
	private String fOrderName;
	
	/**订单产口代码*/
	private String fOrderNumber;

	public OrderNeedEntry() {
		this.fNeedQty = 0.0;
		this.fStockQty = 0.0;
		this.fNeedIcmoQty = 0.0;
		this.fIsBuy = 0;
		this.fRoadQty = 0.0;
		this.fSuperInvQty = 0.0;
		this.fInvQty = 0.0;
		this.fOrderQty = 0.0;
	}

	public Integer getfDetailID() {
		return fDetailID;
	}

	public void setfDetailID(Integer fDetailID) {
		this.fDetailID = fDetailID;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getfName() {
		return fName;
	}

	public void setfName(String fName) {
		this.fName = fName == null ? null : fName.trim();
	}

	public String getfNumber() {
		return fNumber;
	}

	public void setfNumber(String fNumber) {
		this.fNumber = fNumber == null ? null : fNumber.trim();
	}

	public String getfPNumber() {
		return fPNumber;
	}

	public void setfPNumber(String fPNumber) {
		this.fPNumber = fPNumber == null ? null : fPNumber.trim();
	}

	public String getfModel() {
		return fModel;
	}

	public void setfModel(String fModel) {
		this.fModel = fModel == null ? null : fModel.trim();
	}

	public Double getfTotal() {
		return fTotal;
	}

	public void setfTotal(Double fTotal) {
		this.fTotal = fTotal;
	}

	public Double getfStockQty() {
		return fStockQty;
	}

	public void setfStockQty(Double fStockQty) {
		this.fStockQty = fStockQty;
	}

	public Double getfNeedQty() {
		return fNeedQty;
	}

	public void setfNeedQty(Double fNeedQty) {
		this.fNeedQty = fNeedQty;
	}

	public Double getfNeedIcmoQty() {
		return fNeedIcmoQty;
	}

	public void setfNeedIcmoQty(Double fNeedIcmoQty) {
		this.fNeedIcmoQty = fNeedIcmoQty;
	}

	public Integer getfErpClsID() {
		return fErpClsID;
	}

	public void setfErpClsID(Integer fErpClsID) {
		this.fErpClsID = fErpClsID;
	}

	public Integer getfIsBuy() {
		return fIsBuy;
	}

	public void setfIsBuy(Integer fIsBuy) {
		this.fIsBuy = fIsBuy;
	}

	public Double getfRoadQty() {
		return fRoadQty;
	}

	public void setfRoadQty(Double fRoadQty) {
		this.fRoadQty = fRoadQty;
	}

	public Double getfInvQty() {
		return fInvQty;
	}

	public void setfInvQty(Double fInvQty) {
		this.fInvQty = fInvQty;
	}

	public Double getfSuperInvQty() {
		return fSuperInvQty;
	}

	public void setfSuperInvQty(Double fSuperInvQty) {
		this.fSuperInvQty = fSuperInvQty;
	}

	public Double getfOrderQty() {
		return fOrderQty;
	}

	public void setfOrderQty(Double fOrderQty) {
		this.fOrderQty = fOrderQty;
	}

	public Integer getfItemID() {
		return fItemID;
	}

	public void setfItemID(Integer fItemID) {
		this.fItemID = fItemID;
	}

	public String getfBillNo() {
		return fBillNo;
	}

	public void setfBillNo(String fBillNo) {
		this.fBillNo = fBillNo;
	}

	public Date getfDeliveryDate() {
		return fDeliveryDate;
	}

	public void setfDeliveryDate(Date fDeliveryDate) {
		this.fDeliveryDate = fDeliveryDate;
	}

	public String getfOrderName() {
		return fOrderName;
	}

	public void setfOrderName(String fOrderName) {
		this.fOrderName = fOrderName;
	}

	public String getfOrderNumber() {
		return fOrderNumber;
	}

	public void setfOrderNumber(String fOrderNumber) {
		this.fOrderNumber = fOrderNumber;
	}

	@Override
	public String toString() {
		return "OrderNeedEntry [fDetailID=" + fDetailID + ", rank=" + rank + ", fName=" + fName + ", fNumber=" + fNumber
				+ ", fModel=" + fModel + ", fPNumber=" + fPNumber + ", fTotal=" + fTotal + ", fNeedQty=" + fNeedQty
				+ ", fStockQty=" + fStockQty + ", fNeedIcmoQty=" + fNeedIcmoQty + ", fErpClsID=" + fErpClsID
				+ ", fIsBuy=" + fIsBuy + ", fRoadQty=" + fRoadQty + ", fInvQty=" + fInvQty + ", fSuperInvQty="
				+ fSuperInvQty + ", fOrderQty=" + fOrderQty + ", fItemID=" + fItemID + ", fBillNo=" + fBillNo
				+ ", fDeliveryDate=" + fDeliveryDate + ", fOrderName=" + fOrderName + ", fOrderNumber=" + fOrderNumber
				+ "]";
	}

}